<!DOCTYPE html>
<html>
<head lang="zh-CN">
    <meta charset="UTF-8">
    <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
    <meta name="format-detection" content="telephone=no,address=no,email=no"/>
    <meta name="mobileOptimized" content="width"/>
    <meta name="handheldFriendly" content="true"/>
    <meta name="apple-mobile-web-app-capable" content="yes"/>
    <meta name="apple-mobile-web-app-status-bar-style" content="black"/>
    <meta name="viewport" content="width=device-width,initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no">
    <title>开源项目</title>
   <script type="text/javascript">
        (function () {

            function initScale() {
                document.documentElement.style.fontSize = document.documentElement.clientWidth / 14.4 + "px";
            }

            initScale();
            window.addEventListener("resize", initScale, false);

        }());

        //机型公有信息，需要由native接口提供
        var PUBLIC_MOBILE_INFO = {};

        //跟native约定的方法，供浏览器调用，传入机型相关信息
        //不用var声明，自动声明为全局变量
        publicParamsArrival = function (param) {
            param = param || "";
            getInfoFromParam(param);


            /**
             * 工具方法：从param字符串中获取对应value并赋值到全局变量中
             */
            function getInfoFromParam(param) {
                if (!param) {
                    return;
                }

                PUBLIC_MOBILE_INFO.imei = getItem("imei", param);
                if (param.indexOf('vaid') > -1) {
                    PUBLIC_MOBILE_INFO.vaid = getItem("vaid", param);
                    PUBLIC_MOBILE_INFO.oaid = getItem("oaid", param);
                    PUBLIC_MOBILE_INFO.aaid = getItem("aaid", param);
                }
                PUBLIC_MOBILE_INFO.e = getItem("u", param);
                PUBLIC_MOBILE_INFO.model = getItem("model", param);
                PUBLIC_MOBILE_INFO.elapsedtime = getItem("elapsedtime", param);
                PUBLIC_MOBILE_INFO.cs = 0;
                PUBLIC_MOBILE_INFO.app_version = getItem("appversion", param);
                PUBLIC_MOBILE_INFO.app_package = getItem("apppackage", param);

                function getItem(sKey, str) {
                    if (!sKey) { return null; }
                    return decodeURIComponent(str.replace(new RegExp("(?:(?:^|.*;)\\s*" + encodeURIComponent(sKey).replace(/[\-\.\+\*]/g, "\\$&") + "\\s*\\=\\s*([^;]*).*$)|^.*$"), "$1")) || '';
                }

            }
        }


        //检测浏览器是否有该接口
        if (window.vivoClient && window.vivoClient.retrievePublicParams) {
            window.vivoClient.retrievePublicParams();
        } else {
            publicParamsArrival();
        }
    </script>

    <link rel="stylesheet" href=/css/normalize.css/>
    <link rel="stylesheet" href=/css/news-topic.css/>

</head>
<body>

<header>
    <div class="banner">
        <img src=/image/pachong.jpg alt=""/>
            </div>
    <div class="lead no-discuss">
        <div class="wrapper">
            <p class="text ">BINGE的PHP爬虫（本项目开源）</p>
        </div>
            </div>
</header>
<main>
            <section class="categories bd-1px-bottom">
            <div class="sticky" id="sticky">
                <div class="app-scroller">
                    <ul class="category-list scroller-items ">
                                                    <li class="item  cur "
                                data-href="#category-7657">爬虫</li>
                                                    <li class="item "
                                data-href="#category-7888">实用工具</li>
                                                    <li class="item "
                                data-href="#category-7588">开发中</li>
                                                    <li class="item "
                                data-href="#category-7702">开发中</li>
                                                    <li class="item "
                                data-href="#category-7698">开发中</li>
                                                    <li class="item "
                                data-href="#category-7696">开发中</li>
                                                    <li class="item "
                                data-href="#category-7697">开发中</li>
                                                    <li class="item "
                                data-href="#category-7700">开发中</li>
                                                    <li class="item "
                                data-href="#category-7592">开发中</li>
                                                    <li class="item "
                                data-href="#category-7587">开发中</li>
                                           </ul>
                </div>
            </div>
            <div class="placeholder"></div>
        </section>
        <section class="category-news">
            <dl>
                                                                            <dt id="category-7657" class="cn-title">
                         <div class="wrapper bd-1px-bottom">PHP爬虫（仅适用于http）</div>
                        </dt>
                        <dd>
                            <div class="wrapper">
                                <ul class="news-list">
                                                                            <li class="news-item bd-1px-bottom" data-id="26791" data-href=yan.php >
                                            <div class="text">
                                                <p class="title">PHP爬虫</p>
                                                <p class="resinfo">BINGE</p>
                                            </div>
                                            <div class="img">
                                                <img src=/image/pachong.jpg alt=""/>
                                               </div>
                                                </div>
                                        </li>
                                                                    </ul>
                            </div>
                        </dd>
                                                                                <dt id="category-7888" class="cn-title">
                            <div class="wrapper bd-1px-bottom">实用工具</div>
                        </dt>
                        <dd>
                            <div class="wrapper">
                                <ul class="news-list">
                                                                            <li class="news-item bd-1px-bottom" data-id="27165" data-href="https://www.sojson.com/web/yasuo.html">
                                            <div class="text">
                                                <p class="title">在线图片大小修改器,图片尺寸修改工具-照片修改器</p>
                                                <p class="resinfo">图片尺寸修改</p>
                                            </div>
                                            <div class="img">
                                                <img src=/image/imagexg.jpg alt=""/>
                                            </div>
                                        </li>
                                               


<script src=/js/zepto.min.js ></script>
<script src=/js/cookie.js ></script>
<script src=/js/template.js ></script>
<script src=/js/news-topic.js ></script>
</body>
</html>
<?php
//创建写入数据
include 'ip.php';
$ip = getRealIpAddr();
$vistor=array(
    'time'=>date("Y-m-d H:i:s"),
    '$ip'=>getRealIpAddr()
);
//读取保存数据到txt文件
$res = @file_get_contents("log/iptime.json");
//读取解析成数组
$res_new = explode("\r\n",$res); 
file_put_contents("log/iptime.json", json_encode($vistor,true)."\r\n",FILE_APPEND);
                                             
                                           